<div class="nav">
    <a href="{:U('index')}">底部帮助中心列表</a>
    <a class="sel" href="#">修改栏目</a>
</div>
<div class="add">
    <form method="post" action="" >
        <table class="table_add">
            <tr>
                <td width="100px">所属类别</td>
                <td><select name="parent_id" id="parent_id" class="sel1">
                        <option value="0">顶级类别</option>
                        <foreach name="parentList" item="item">
                            <option value="{$item.category_id}" >{$item.category_name}</option>
                        </foreach>
                    </select>
                </td>
            </tr>
            <tr>
                <td width="100px">名称</td>
                <td><input class="input1" type="text" name="category_name" id="category_name" value="{$model.category_name}" style="width:140px" /> </td>
            </tr>
            <tr>
                <td width="100px">跳转地址</td>
                <td><input class="input1" type="text" name="url" id="url" value="{$model.url}" style="width:500px" /> </td>
            </tr>
            <tr>
                <td width="100px">顺序编号</td>
                <td><input class="input1" type="text" name="order_id" id="order_id" value="{$model.order_id}" style="width:60px" /> <label class="msg">*</label></td>
            </tr>
            <tr>
                <td width="100px">是否启用</td>
                <td><select name="is_show" id="is_show" class="sel1">
                        <option value="1">启用</option>
                        <option value="0">不启用</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" class="btn1" value="提 交" /> &nbsp; <input class="btn4"  type="reset" value="重 置" /> &nbsp; <input class="btn3"  type="button" onclick="window.history.back()" value="返 回" /></td>
            </tr>
        </table> 
        <input type="hidden" name="category_id" value="{$model.category_id}" />
    </form>
</div>
<script type="text/javascript">
    $(function () {
        $("#parent_id").val('{$model.parent_id}');
        $("#is_show").val('{$model.is_show}');
    })
</script>